//
//  UIViewController+Extension.m
//  kongbaoqu
//
//  Created by renren  on 2020/6/19.
//  Copyright © 2020  renren  All rights reserved.
//

#import "UIViewController+Extension.h"
#import "AppDelegate.h"

#import <objc/runtime.h>
static void *hideNavBar = @"hideNavBar";


//static void *backItemHandler = @"backItemHandler";
@implementation UIViewController (Extension)

- (void)setHideNavigationBar:(BOOL)hideNavigationBar {
    NSNumber *hiddenNumber = [NSNumber numberWithBool:hideNavigationBar];
    objc_setAssociatedObject(self, &hideNavBar, hiddenNumber, OBJC_ASSOCIATION_ASSIGN);
}

- (BOOL)hideNavigationBar {
    return  objc_getAssociatedObject(self, &hideNavBar);
}




@end
